// composables/useShare.js
export function useShare(options) {
  // 好友分享
  function onShareAppMessage() {
    return {
      title: options.title,
      path: options.path,
      imageUrl: options.imageUrl
    };
  }

  // 朋友圈分享
  function onShareTimeline() {
    return {
      title: options.title,
      query: options.query || '',
      imageUrl: options.imageUrl
    };
  }

  return {
    onShareAppMessage,
    onShareTimeline
  };
}